package cn.hk.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * app用户表
 * </p>
 *
 * @author xu
 * @since 2023-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mms_app_user_info")
@ApiModel(value="UserInfo对象", description="app用户表")
public class UserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "最后修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "被关联时间")
    private Date relateTime;

    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "登录名")
    private String loginUserName;

    @ApiModelProperty(value = "0女 1男")
    private Integer gender;

    @ApiModelProperty(value = "民族")
    private String nation;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "登录手机号")
    private String mobile;

    @ApiModelProperty(value = "联系手机号")
    private String phone;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "盐值")
    private Integer salt;

    @ApiModelProperty(value = " 0正常 1怀孕 2备孕 3宝妈 ")
    private Integer gravid;

    @ApiModelProperty(value = "是否慢性病 0否 1是")
    private Integer chronic;

    @ApiModelProperty(value = "身高")
    private String height;

    @ApiModelProperty(value = "体重")
    private String weight;

    @ApiModelProperty(value = "医保类型id")
    private Long medicalInsuranceType;

    @ApiModelProperty(value = "所属社区id")
    private Long deptId;

    @ApiModelProperty(value = "推广码")
    private String extensionCode;

    @ApiModelProperty(value = "末次月经时间")
    private Date lastMenstruation;

    @ApiModelProperty(value = "是否完善完信息：1：完成；0：未完成")
    private Integer isPerfect;

    @ApiModelProperty(value = "行政区划")
    private String areaName;


    @ApiModelProperty(value = "银行卡号")
    private String bankCode;

    @ApiModelProperty(value = "支付宝账号")
    private String alipayCode;

    @ApiModelProperty(value = "微信账号")
    private String wechatCode;

    @ApiModelProperty(value = "1低；2一般；3较高；4高；5极高")
    private String gestationRisk;

    @ApiModelProperty(value = "0不是  1是")
    private String isVip;

    @ApiModelProperty(value = "出生证")
    private String birthCertificate;

    @ApiModelProperty(value = "个推id")
    private String cid;

    @ApiModelProperty(value = "0 安卓 1苹果")
    private String ptType;

    @ApiModelProperty(value = "0 否 1是")
    private String isPush;

    @ApiModelProperty(value = "是否有效：1：有效；0：已注销")
    private String status;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户类型(1儿童 2孕妇 3 普通人 4老年人 5慢性病)")
    private String userType;


}
